# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=py3-mygpoclient
pkgver=1.8
pkgrel=2
pkgdesc="Python Client Library for gpodder.net"
url="https://github.com/gpodder/mygpoclient"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-pytest py3-pytest-cov py3-minimock"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gpodder/mygpoclient/archive/$pkgver.tar.gz"
builddir="$srcdir/mygpoclient-$pkgver"

build() {
	python3 setup.py build
}

check() {
	make test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1edecd5ccb116c7f4017ebe6572439d87ff76501ed0628934e548dc0c9c041127a11ec9f4def4a54a6f7fabe46a461c863ec2ff2f8c14c3c67b5d1fd9285bb9f  py3-mygpoclient-1.8.tar.gz"
